Math Magic ✨

All 12 Optimization Problems Solved Beautifully

1
2
3
4
5
6
7
8
9
10
11
12

Problem 1: Maximum Product

Find two positive numbers whose sum is 12 and their product is maximum.

1 Define Variables

Let the two numbers be x and y.

2 Establish Relationship

Given that their sum is 12:

x + y = 12

We can express y in terms of x:

y = 12 - x

3 Express Product Function

The product P of the two numbers is:

P = x × y = x(12 - x) = 12x - x²

4 Find Maximum Value

This is a quadratic function that opens downward (since coefficient of x² is negative).

The maximum occurs at the vertex. For a function ax² + bx + c, the vertex is at x = -b/(2a).

Here, a = -1, b = 12

x = -b/(2a) = -12/(2×-1) = 6

5 Find Both Numbers

When x = 6:

y = 12 - 6 = 6

So both numbers are 6.

6 Calculate Maximum Product

P = 6 × 6 = 36

Final Answer:

The two numbers are 6 and 6, giving the maximum product of 36.

Visualization

Graph showing how the product changes with different numbers:

The tallest bar shows the maximum product occurs when both numbers are equal.

Problem 2: Minimum Sum

Find two positive numbers whose product is 20 and their sum is minimum.

1 Define Variables

Let the two numbers be x and y.

2 Establish Relationship

Given that their product is 20:

x × y = 20

We can express y in terms of x:

y = 20/x

3 Express Sum Function

The sum S of the two numbers is:

S = x + y = x + 20/x

4 Find Minimum Value

Take derivative of S with respect to x:

dS/dx = 1 - 20/x²

Set derivative to zero for critical points:

1 - 20/x² = 0 ⇒ x² = 20 ⇒ x = √20 ≈ 4.47

5 Find Both Numbers

When x = √20:

y = 20/√20 = √20

So both numbers are √20.

6 Calculate Minimum Sum

S = √20 + √20 = 2√20 ≈ 8.94

Final Answer:

The two numbers are √20 and √20 (≈4.47), giving the minimum sum of 2√20 ≈ 8.94.

Visualization

Graph showing how the sum changes with different numbers:

The shortest bar shows the minimum sum occurs when both numbers are equal.

Problem 3: Minimum Sum of Squares

Find the smallest possible value of x² + y² given that x + y = 10.

1 Given Condition

x + y = 10 ⇒ y = 10 - x

2 Express Sum of Squares

S = x² + y² = x² + (10 - x)² = x² + 100 - 20x + x² = 2x² - 20x + 100

3 Find Minimum Value

This is a quadratic function opening upward (a=2 > 0).

Minimum occurs at vertex: x = -b/(2a) = 20/4 = 5

4 Find y Value

y = 10 - 5 = 5

5 Calculate Minimum Sum

S = 5² + 5² = 25 + 25 = 50

Final Answer:

The minimum value is 50 when x = y = 5.

Visualization

Graph of the sum of squares function:

Minimum at (5,50)

The curve shows the minimum sum of squares occurs when x=5.

Problem 4: Maximum Garden Area

A garden is to be laid out in a rectangular area and protected by wire fence. What is the largest possible area of the fenced garden with 40 metres of wire?

1 Define Variables

Let length = x meters, width = y meters.

2 Perimeter Constraint

2(x + y) = 40 ⇒ x + y = 20 ⇒ y = 20 - x

3 Express Area

A = x × y = x(20 - x) = 20x - x²

4 Find Maximum Area

Quadratic opening downward (a=-1), vertex at:

x = -b/(2a) = -20/(2×-1) = 10

5 Find Dimensions

y = 20 - 10 = 10

Both length and width are 10m (a square).

6 Calculate Maximum Area

A = 10 × 10 = 100 m²

Final Answer:

The maximum area is 100 m² with a square garden (10m × 10m).

Visualization

Different rectangle shapes with perimeter 40m:

8m × 12m
Area: 96m²

9m × 11m
Area: 99m²

10m × 10m
Area: 100m² (MAX)

The square gives the maximum area for a given perimeter.

Problem 5: Minimum Paper Area

A rectangular page is to contain 24 cm² of print. The margins at the top and bottom of the page are 1.5 cm and the margins at other sides of the page is 1 cm. What should be the dimensions of the page so that the area of the paper used is minimum.

1 Define Variables

Let print area dimensions be width = x cm, height = y cm.

x × y = 24 ⇒ y = 24/x

2 Account for Margins

Total page width: x + 2 (1cm margins on both sides)

Total page height: y + 3 (1.5cm margins top and bottom)

3 Express Total Area

A = (x + 2)(y + 3) = (x + 2)(24/x + 3) = 24 + 3x + 48/x + 6 = 30 + 3x + 48/x

4 Find Minimum Area

Take derivative:

dA/dx = 3 - 48/x²

Set to zero:

3 - 48/x² = 0 ⇒ x² = 16 ⇒ x = 4

5 Find Dimensions

y = 24/4 = 6

Total width: 4 + 2 = 6 cm

Total height: 6 + 3 = 9 cm

Final Answer:

The optimal page dimensions are 6cm × 9cm.

Visualization

Page layout with margins:

Print Area (4×6=24cm²)

Margins: 1.5cm top/bottom, 1cm sides

Problem 6: Minimum Fencing

A farmer plans to fence a rectangular pasture adjacent to a river. The pasture must contain 1,80,000 sq.mtrs in order to provide enough grass for herds. No fencing is needed along the river. What is the length of the minimum needed fencing material?

1 Define Variables

Let side parallel to river = x meters

Side perpendicular to river = y meters

2 Area Constraint

x × y = 180,000 ⇒ y = 180,000/x

3 Express Fencing Length

Only 3 sides need fencing (no river side):

L = x + 2y = x + 2(180,000/x) = x + 360,000/x

4 Find Minimum Length

Take derivative:

dL/dx = 1 - 360,000/x²

Set to zero:

1 - 360,000/x² = 0 ⇒ x² = 360,000 ⇒ x = 600

5 Find y Value

y = 180,000/600 = 300

6 Calculate Minimum Fencing

L = 600 + 2×300 = 1200 meters

Final Answer:

The minimum fencing needed is 1200 meters (600m parallel to river and 300m on each side).

Visualization

Pasture layout:

Pasture Area (600×300=180,000m²)
River (no fencing needed)

Problem 7: Maximum Inscribed Rectangle

Find the dimensions of the rectangle with maximum area that can be inscribed in a circle of radius 10 cm.

1 Understand the Problem

A rectangle inscribed in a circle means all four vertices lie on the circle.

This implies the diagonal of the rectangle is the diameter of the circle.

2 Define Variables

Let the rectangle have length l and width w.

The diagonal d = √(l² + w²) = 2×10 = 20 cm (diameter)

3 Express Relationship

l² + w² = 400

We can express w in terms of l:

w = √(400 - l²)

4 Express Area

A = l × w = l × √(400 - l²)

5 Find Maximum Area

Using calculus, we find maximum occurs when l = w (square).

From l² + l² = 400 ⇒ 2l² = 400 ⇒ l² = 200 ⇒ l = √200 ≈ 14.14 cm

6 Calculate Dimensions

w = √(400 - 200) = √200 ≈ 14.14 cm

Final Answer:

The rectangle with maximum area is a square with sides ≈14.14 cm (√200 cm).

Visualization

Circle with inscribed rectangle:

10
Diameter = 20cm

The largest inscribed rectangle is a square with diagonal equal to the diameter.

Problem 8: Maximum Area for Given Perimeter

Prove that among all the rectangles of the given perimeter, the square has the maximum area.

1 Define Variables

Let perimeter P = 2(l + w) be constant.

Let l + w = k (constant), so w = k - l

2 Express Area

A = l × w = l(k - l) = kl - l²

3 Find Maximum Area

This is a quadratic function opening downward.

Maximum occurs at vertex: l = -b/(2a) = -k/(2×-1) = k/2

4 Find Corresponding Width

w = k - k/2 = k/2

Thus l = w, meaning the rectangle is a square.

5 Calculate Maximum Area

A = (k/2) × (k/2) = k²/4

Final Answer:

For a fixed perimeter, the square (where length = width) gives the maximum area among all rectangles.

Visualization

Rectangles with perimeter P=40:

5×15
Area: 75

10×10
Area: 100 (MAX)

15×5
Area: 75

The square has the largest area for the same perimeter.

Problem 9: Largest Inscribed Rectangle in Semicircle

Find the dimensions of the largest rectangle that can be inscribed in a semicircle of radius r cm.

1 Understand the Problem

The rectangle sits on the diameter with its top corners touching the semicircle.

2 Define Variables

Let the rectangle have width 2x (from -x to x on diameter) and height y.

3 Establish Relationship

The top corner (x,y) lies on the semicircle: x² + y² = r² ⇒ y = √(r² - x²)

4 Express Area

A = 2x × y = 2x√(r² - x²)

5 Find Maximum Area

Using calculus, maximum occurs when x = r/√2

Then y = √(r² - r²/2) = r/√2

6 Calculate Dimensions

Width: 2x = 2r/√2 = r√2

Height: y = r/√2

Final Answer:

The largest rectangle has dimensions width = r√2 and height = r/√2.

Visualization

Semicircle with inscribed rectangle:

r

The optimal rectangle has width √2 times its height.

Problem 10: Maximum Volume Open Box

A manufacturer wants to design an open box having a square base and a surface area of 108 sq.cm. Determine the dimensions of the box for the maximum volume.

1 Define Variables

Let base side = x cm, height = h cm.

2 Surface Area Constraint

Open box has 1 base + 4 sides:

x² + 4xh = 108 ⇒ h = (108 - x²)/(4x)

3 Express Volume

V = x² × h = x² × (108 - x²)/(4x) = (108x - x³)/4

4 Find Maximum Volume

Take derivative:

dV/dx = (108 - 3x²)/4

Set to zero:

108 - 3x² = 0 ⇒ x² = 36 ⇒ x = 6

5 Find Height

h = (108 - 36)/24 = 72/24 = 3 cm

Final Answer:

The box should have dimensions 6cm × 6cm × 3cm for maximum volume.

Visualization

Open box with square base:

Base: 6×6, Height: 3cm, Surface Area: 36 + 4×18 = 108cm²

Problem 11: Cylinder Volume Optimization

The volume of a cylinder is given by the formula V = πr²h. Find the greatest and least values of V if r + h = 6.

1 Given Constraint

r + h = 6 ⇒ h = 6 - r

2 Express Volume

V = πr²h = πr²(6 - r) = 6πr² - πr³

3 Find Critical Points

Take derivative:

dV/dr = 12πr - 3πr² = 3πr(4 - r)

Set to zero:

3πr(4 - r) = 0 ⇒ r = 0 or r = 4

4 Evaluate Volume

At r = 0: V = 0 (minimum)

At r = 4: h = 2, V = π×16×2 = 32π (maximum)

Final Answer:

The maximum volume is 32π when r=4 and h=2.

The minimum volume is 0 when r=0 or h=0.

Visualization

Volume as function of radius:

Max at (4,32π)

The volume reaches its maximum at r=4 then decreases.

Problem 12: Largest Cylinder in Cone

A hollow cone with base radius a cm and height b cm is placed on a table. Show that the volume of the largest cylinder that can be hidden underneath is 4/9 times volume of the cone.

1 Understand the Problem

We need to find the largest cylinder that fits entirely within the cone.

2 Define Variables

Let cylinder radius = r, height = h.

By similar triangles: (b-h)/b = r/a ⇒ r = a(1 - h/b)

3 Express Volume

V = πr²h = πa²(1 - h/b)²h = πa²(h - 2h²/b + h³/b²)

4 Find Maximum Volume

Take derivative:

dV/dh = πa²(1 - 4h/b + 3h²/b²)

Set to zero:

3h²/b² - 4h/b + 1 = 0 ⇒ h = b/3 or h = b

The valid solution is h = b/3 (h=b gives zero volume)

5 Find Radius

r = a(1 - (b/3)/b) = 2a/3

6 Calculate Volume Ratio

Cylinder volume: V = π(2a/3)²(b/3) = (4πa²b)/27

Cone volume: V_cone = (πa²b)/3

Ratio: V/V_cone = (4/27)/(1/3) = 4/9

Final Answer:

The largest cylinder has volume (4/9) times the volume of the cone, proved.

Visualization

Cone with inscribed cylinder:

The optimal cylinder has height 1/3 and radius 2/3 of the cone's dimensions.